package com.atguigu.junit.junit5;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/*
@description:
@ClassName SpringTestJunit5
@author chen
@create 2023-08-15 9:48
@Version 1.0
*/
@SpringJUnitConfig(locations = "classpath:bean.xml")
public class SpringTestJunit5 {

    //注入
    @Autowired
    private User user;

    //测试方法
    @Test
    public void testUser() {
        System.out.println(user);
        user.run();
    }

}